package com.flyan.game.motafx.entity.item;

import com.flyan.game.motafx.entity.BaseEntityInfo;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;

/**
 * 物品实体信息
 *
 * @author flyan
 * @version 1.0
 * @email flyan_by_chenu@sina.com
 * @since 2025/2/7
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ItemEntityInfo extends BaseEntityInfo {

    /**
     * 数量，默认 1
     */
    private int amount = 1;

    /**
     * 物品效果
     */
    private List<String> effects = new ArrayList<>(3);

    public void addEffect(String effect) {
        effects.add(effect);
    }

}
